package com.jingyanzi.privilege.client;

import java.util.List;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.privilege.domain.OrgDO;

@RestController
@RequestMapping("/api")
public interface DepartmentClientAPI {
	
	@GetMapping("/org/{id}")
	public OrgDO get(@PathVariable(value = "id") Integer id);
	
	@GetMapping("/orgs/{name}/{type}/{orgId}/{code}")
	public List<OrgDO> query(@PathVariable(value = "name")String name, 
			@PathVariable(value = "code") String code, 
			@PathVariable(value = "type") Integer type, 
			@PathVariable(value = "orgId")Integer orgId);

}
